#! /usr/bin/python3
# -*- coding: UTF-8 -*-

if __name__ == "__main__":
	raise Exception("不支持从这里调用")

__version__ = "1.0"
__all__ = []

from com.mousechsh.common.middle.http.MouseChshHttpHeader import mousechsh_http_header_accept_language_annotation
from com.mousechsh.common.middle.router.MouseChshHttpRouter import mousechsh_http_router_annotation


@mousechsh_http_router_annotation(method='GET', path='/')
@mousechsh_http_header_accept_language_annotation()
def _index(url, request, response, *argsArr, **argsDict):
	response.get_header().set_content_type('html')
	response.set_body(
		'''
	   <!DOCTYPE html>
	   <html lang="zh-CN">
	   <head>
		   <meta charset="UTF-8">
		   <meta http-equiv="X-UA-Compatible" content="IE=edge">
		   <meta name="viewport" content="width=device-width, initial-scale=1.0">
		   <title>用户服务器</title>
	   </head>
	   <body>
		   用户服务器已经启动，请通过接口访问本服务。
	   </body>
	   </html>
	   '''
	)
